package com.example.service.impl;


import com.example.mapper.UserMapper;
import com.example.pojo.User;
import com.example.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

import javax.annotation.Resource;

/**
 * 分类业务层
 */
@Service
@Slf4j
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;



    @Override
    public User getUserById(Long id) {
        User user = userMapper.selectById(id);
        return user;
    }
}
